package com.bgIntlgn.client.entity.manufacture.picLibrary;

import java.util.Date;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

@Table(name = "pic_library_circulating_records", constrain = "")
public class PicLibraryCirculatingRecord implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('pic_library_circulating_records_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = "primary key ")
	private Long id;

	@Field(name = "pic_lib_id", type = "int8", constrain = "not null references pic_papaer_circulate_librarys(id) on update cascade ")
	private Long picLibId;

	/**
	 * 厂长借给部长，可以认为经手人就是生产部的人
	 */
	@Field(name = "handler", type = "int8", constrain = "not null references employees(id)  on update cascade ")
	private Long handler;

	/**
	 * 厂长借给部长，可以认为负责热人就是厂长这边的管理员
	 */
	@Field(name = "charger", type = "int8", constrain = "references employees(id)  on update cascade ")
	private Long charger;

	@Field(name = "date", type = "date", constrain = "")
	private Date date;

	@Field(name = "comment", type = "varchar(200)", constrain = "")
	private String comment;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPicLibId() {
		return this.picLibId;
	}

	public void setPicLibId(Long picLibId) {
		this.picLibId = picLibId;
	}

	public Long getHandler() {
		return this.handler;
	}

	public void setHandler(Long handler) {
		this.handler = handler;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Long getCharger() {
		return charger;
	}

	public void setCharger(Long charger) {
		this.charger = charger;
	}

}
